﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public static class DateTimeExtension
{
    public static int CompareDayTo(this DateTime date2,DateTime date)
    {
        long time = (date2.Ticks - date.Ticks) / 10000000;
        int dayNum =(int) time / (24 * 3600);
        return dayNum;
    }
}

